<!--
 * @Author: ChengNan 1429323234@qq.com
 * @Date: 2024-09-05 13:35:58
 * @LastEditors: ChengNan 1429323234@qq.com
 * @LastEditTime: 2024-09-05 14:14:47
 * @FilePath: /src/views/0.web-front/7天入门/11.css3D旋转.html
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 200px;
      height: 200px;
      margin: auto;
      border: 1px solid red;
      /* 启用3D变换 */
      transform-style: preserve-3d;
      /* 视图距离 */
      perspective: 200px;
    }
    .box1 {
      background-color: skyblue;
      transform: rotateX(50deg);
    }
  </style>
</head>
<body>
  <p>
    <a href="https://www.runoob.com/css3/css3-3dtransforms.html" title="点击查看更多知识！">css3 3D旋转</a>
  </p>
  <div>
    <div class="box1"></div>
  </div>
</body>
</html>